package Day004.ZuoYe01;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class Test05 {
    public static void main(String[] args) {

        GregorianCalendar gc = new GregorianCalendar();
        gc.set(1949,9,1);
        System.out.println(gc);
        //Calendar cal = Calendar.getInstance();
        //cal.set(1949,9,1);
        //cal.get(Calendar.YEAR);
        //gc.get(Calendar.YEAR);

        int weekend = gc.get(Calendar.DAY_OF_WEEK);
        System.out.println(weekend); // 7 --> 星期六

    }
}
